		 <style>
		#ff{margin:20px auto;width:600px;}
		#ff tr{width:600px;height:30px;}
		#ff tr td{algin:left;}
		#ff tr td input{margin-left:10px;}
		 </style>
		 <script>
		 $(document).ready(function(){
			 $("#sub").click(function(){
			 	 $('#ff').form('submit', {
				url:'<?=$actionurl?>',
			    onSubmit: function(){

	   				  },
	     		 success:function(data){
	        		 	$.messager.alert('Warning',data);

	   				 },
	   				 onLoadError:function(){
	   				 	$.messager.alert('Warning','保存失败');
	   				 }

	 				});
			 });

		 });



		 </script>
		 <form id="ff" method="post">
		 <table>
		 <caption>邮箱SMTP设置</caption>
	        <tr>
	            <td align="right">SMTP地址:</td>
	            <td><input class="easyui-validatebox" type="text" value="<?=isset($data['SmtpIP']) ? $data['SmtpIP'] : ''?>" name="SmtpIP" ></td>
	        </tr>
	        <tr>
	            <td align="right">SMTP帐号:</td>
	            <td><input class="easyui-validatebox" type="text" value="<?=isset($data['SmtpName']) ? $data['SmtpName'] : ''?>" name="SmtpName" ></td>
	        </tr>
	         <tr>
	            <td align="right">密码:</td>
	            <td><input class="easyui-validatebox" type="text" value="<?=isset($data['password']) ? $data['password'] : ''?>" name="password"></td>
	        </tr>


  			<input type="hidden" name="userid" value="<?=isset($data['userid']) ? $data['userid'] : ''?>"/>
  			<input type="hidden" name="groupid" value="<?=isset($data['groupid']) ? $data['groupid'] : ''?>"/>
	        <tr>
	        <td></td>
	           <td> <input type="button" id="sub" value="保存"></td>
	        </tr>
	        </table>
	    </form>